﻿@using StudentManagement.Models;

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    @{ var student = ViewData["student"] as Student;
       var pageTitle = ViewData["pageTitle"].ToString();
      }
    <h2>@pageTitle</h2>
    <hr />
    <div>@student.Name</div>
    <div>@student.ClassName</div>
    <div>@student.Email</div>

    @*<h2>@ViewBag.pageTitle</h2>
        <hr />
        <div>@ViewBag.student.Name</div>
        <div>@ViewBag.student.ClassName</div>
        <div>@ViewBag.student.Email</div>*@
</body>
</html>